﻿// (c) Copyright Mikhail Dikov. All other rights reserved.

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Xml.Serialization;

namespace WebPartExtenderToolkit
{
    /// <summary>
    /// Summary description for PanelWebPart
    /// </summary>
    /// 
    [ToolboxData("<{0}:DummyWebPart runat=server></{0}:DummyWebPart>")]
    [XmlRoot(Namespace = "WebPartExtenderToolkit")]
    public class DummyWebPart : WebPart
    {     
        protected override void CreateChildControls()
        {
            base.CreateChildControls();
            Panel content = new Panel();
            content.Controls.Add(new LiteralControl(Resources.Content));
            this.Controls.Add(content);
            Title = "Sample WebPart";
            ChildControlsCreated = true;
        }
    }
}